//
//  Person.h
//  OC_JiangMingjun
//
//  Created by apple on 16/4/29.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject

@property(nonatomic,retain)NSString *name;

@property(nonatomic,retain)NSString *sex;

@property(nonatomic,assign)NSInteger age;

@property(nonatomic,retain)NSString *phoneNumber;

@property(nonatomic,retain)NSString *group;


#pragma mark - Creating and Init

+ (instancetype)personWithName:(NSString *)name
                           sex:(NSString *)sex
                           age:(NSInteger)age
                   phoneNumber:(NSString *)number;





#pragma mark - Function

- (NSComparisonResult)compareWithSex:(Person *)another;



@end
